﻿import request from '/@/utils/request';
enum Api {
  AddBusFavoritesGoods = '/api/busFavoritesGoods/add',
  DeleteBusFavoritesGoods = '/api/busFavoritesGoods/delete',
  UpdateBusFavoritesGoods = '/api/busFavoritesGoods/update',
  PageBusFavoritesGoods = '/api/busFavoritesGoods/page',
  GetBusFavoritesDropdown = '/api/busFavoritesGoods/BusFavoritesDropdown',
  GetBusGoodsDropdown = '/api/busFavoritesGoods/BusGoodsDropdown',
}

// 增加我的收藏
export const addBusFavoritesGoods = (params?: any) =>
	request({
		url: Api.AddBusFavoritesGoods,
		method: 'post',
		data: params,
	});

// 删除我的收藏
export const deleteBusFavoritesGoods = (params?: any) => 
	request({
			url: Api.DeleteBusFavoritesGoods,
			method: 'post',
			data: params,
		});

// 编辑我的收藏
export const updateBusFavoritesGoods = (params?: any) => 
	request({
			url: Api.UpdateBusFavoritesGoods,
			method: 'post',
			data: params,
		});

// 分页查询我的收藏
export const pageBusFavoritesGoods = (params?: any) => 
	request({
			url: Api.PageBusFavoritesGoods,
			method: 'post',
			data: params,
		});

export const getBusFavoritesDropdown = () =>
		request({
		url: Api.GetBusFavoritesDropdown,
		method: 'get'
		});
export const getBusGoodsDropdown = () =>
		request({
		url: Api.GetBusGoodsDropdown,
		method: 'get'
		});

